<!--
*
*  INSPINIA - Responsive Admin Theme
*  version 2.7
*
-->

<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title><?=$system['sys_title']?> | <?=$title?></title>
    <?php $this->load->view('template/css');?>
    <link rel="stylesheet" href="<?=base_url("assets/css/my.css")?>">
    <link rel="stylesheet" href="<?=base_url("assets/css/plugins/iCheck/custom.css")?>">
</head>

<body class="font16">
<?php $this->load->view('template/header');?>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">




                <div class="ibox-title">

                    <h5 style="font-size: 18px;"><?=$title;?></h5>
                </div>

                <div class="ibox-content">
                    <?if(isset($success)&&$success==true){?>
                    <div class="alert alert-danger alert-dismissable">
                        <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                        修改失败
                    </div>
                    <?}?>
                    <form id="signupForm" class="form-horizontal">
                        <div class="form-group"><label class="col-sm-2 control-label">原始密码</label>
                            <div class="col-sm-10"><input type="password" class="form-control" value="" placeholder="请输入原始密码" name="old_pass" datatype="/^[0-9a-zA-Z_#@]{6,18}$/" errormsg="请填写6至18位不包含特殊字符的密码"></div>
                        </div>
                        <div class="form-group"><label class="col-sm-2 control-label">新密码</label>
                            <div class="col-sm-10"><input type="password" name="password" datatype="/^[0-9a-zA-Z_#@]{6,18}$/" class="form-control" placeholder="请填写6至18位不包含特殊字符的密码" ></div>
                        </div>
                        <div class="form-group"><label class="col-sm-2 control-label">重复新密码</label>
                            <div class="col-sm-10"><input type="password" value="" name="repassword" datatype="*" placeholder="请重新输入密码" recheck="password" class="form-control"></div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">确认修改</button>
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>
<script>
    var SCOPE={
        'url_form':'<?=site_url('main/pass_change')?>',
    }
</script>
<?php $this->load->view('template/foot');?>
<?php $this->load->view('template/scrip');?>
<!-- Jquery Validate -->
<script src="<?=base_url("assets/js/Validform_v5.3.2_min.js")?>"></script>
<script src="<?=base_url("assets/js/jquery.form.min.js")?>"></script>
<script src="<?=base_url("assets/js/dialog.js")?>"></script>
<script>
        $(document).ready(function() {
            $('#signupForm').Validform({
                tiptype: 3,
                beforeSubmit: function (data) {
                    accretion(data)
                    return false;
                }
            });
        })
    </script>
</body>
</html>
